package com.yyq.gxdc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yyq.gxdc.entity.ReceivingAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReceivingAddressMapper extends BaseMapper<ReceivingAddress> {
    /**
     * 分页查询
     * @param receivingAddress
     * @return
     */
    public List<ReceivingAddress> find(ReceivingAddress receivingAddress);

    /**
     * 根据ID查询菜品
     * @param id
     * @return
     */
    public ReceivingAddress findById(Integer id);

    /** 这边搜的renming   列表分页查询  */
    IPage<ReceivingAddress> getAllReceivingAddress(Page<ReceivingAddress> page, @Param("query") ReceivingAddress receivingAddress);
}
